package com.imau.config;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class MyAdvice {

    @Pointcut("execution(void com.imau.dao.*.*(..))")
    public void pt()
    {
    }
    @Before("pt()")
    public void method(){
        System.out.println(System.currentTimeMillis());
    }

    @After("pt()")
    public void method2(){
        System.out.println(System.currentTimeMillis());
    }
}
